package com.atguigu.ssyx.user;

import com.atguigu.ssyx.vo.user.LeaderAddressVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * Created with IntelliJ IDEA.
 * ClassName: UserFeignClient
 * Package: com.atguigu.ssyx.user
 * Description:
 * User: fzykd
 *
 * @Author: LQH
 * Date: 2023-10-02
 * Time: 23:37
 */

@FeignClient("service-user")
public interface UserFeignClient {

    //通过用户Id获取 收获地址 和 团长信息
    //定义接口
    @GetMapping("api/user/leader/inner/getUserAddressByUserId/{userId}")
    public LeaderAddressVo getUserAddressByUserId(@PathVariable("userId") Long userId);

}
